home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9494 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1007 b 

  1. Path: hobbes.cc.uga.edu!pollux!greear
  2. From: greear@pollux.cs.uga.edu (Ben Greear)
  3. Newsgroups: comp.lang.c
  4. Subject: ellipses and a front end to sprintf
  5. Date: 10 Mar 1996 22:45:39 GMT
  6. Organization: University of Georgia, Athens
  7. Message-ID: <4hvm2j$9dd@hobbes.cc.uga.edu>
  8. NNTP-Posting-Host: pollux.cs.uga.edu
  9.  
  10.  
  11. I would like to build a function Sprintf that would take as
  12. arguments: Sprintf(String& a, String& b, ... );
  13.  
  14. where String is a string class i am coding.
  15.  
  16. My main question is how to get the "..." arguments to sprintf.
  17.  
  18. can I just call it as:  sprintf(a.str, b.str, ...);
  19. (assuming this is a friend function of String)
  20.  
  21.  
  22. Also, is there a ftp site where I might be able to find the source for
  23. sprintf?  (without downloading all of Linux or something :)  )
  24.  
  25. any help/code examples would be greatly appreciated
  26.  
  27.  
  28. Ben Greear                 |  "More weight."  -- The Crucible
  29. greear@pollux.cs.uga.edu   |  "Son, you got a panty on yer head."
  30. Junior at UGA                             --Raising Arizona
  31.  
  32.  
  33.  
  34.